package com.hoshiibuy.dictionary.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hoshiibuy.dictionary.mapper.IDataYlhMapper;
import com.hoshiibuy.dictionary.service.IDataYlhService;
import com.hoshiibuy.dictionary.entity.DataYlhVo;

import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author guangjinwei
 * @create 2019-04-15
 */
@Service
public class DataYlhServiceImpl extends ServiceImpl<IDataYlhMapper, DataYlhVo> implements IDataYlhService {



    @Override
    public DataYlhVo findDataYlhById(Integer id) {
        return baseMapper.selectById(id);
    }

    @Override
    public List<DataYlhVo> findDataYlhList() {
        return baseMapper.findDataYlhList();
    }

    @Override
    public void saveDataYlh(DataYlhVo dataYlhVo) {
        baseMapper.insert(dataYlhVo);
    }

    @Override
    public void updateDataYlhById(DataYlhVo dataYlhVo) {
        baseMapper.updateById(dataYlhVo);
    }

    @Override
    public void delDataYlhById(Long id) {
        baseMapper.deleteById(id);
    }

    @Override
    public void queryDataYlhById(Long id) {
        baseMapper.selectById(id);
    }

}
